import request from "@/utils/request";

// 查询观众列表
export function listAudience(query) {
  return request({
    url: "/audience/list",
    method: "get",
    params: query,
  });
}

// 新增观众
export function addAudience(data) {
  return request({
    url: "/audience",
    method: "post",
    data: data,
  });
}

// 修改观众
export function updateAudience(data) {
  return request({
    url: "/audience",
    method: "put",
    data: data,
  });
}

// 冻结观众
export function freezeAudience(id) {
  return request({
    url: "/audience/freeze/" + id,
    method: "put",
  });
}

// 解冻观众
export function unfreezeAudience(id) {
  return request({
    url: "/audience/unfreeze/" + id,
    method: "put",
  });
}
